package com.umeng.fb;

import java.util.Date;
import org.json.JSONObject;

public class a
  implements Comparable<a>
{
  String a;
  String b;
  public String c;
  public String d;
  public Date e;
  public b f;
  public a g = a.c;
  public JSONObject h;

  public a(JSONObject paramJSONObject)
    throws Exception
  {
    if (paramJSONObject == null)
      throw new Exception("invalid atom");
    this.h = paramJSONObject;
    String str1 = paramJSONObject.optString("type");
    if ("new_feedback".equals(str1))
    {
      this.f = b.a;
      str2 = paramJSONObject.optString("state");
      if (!("sending".equalsIgnoreCase(str2)))
        break label188;
    }
    for (this.g = a.a; ; this.g = a.d)
      do
        while (true)
        {
          if (this.f == b.a)
            this.a = paramJSONObject.optString("thread");
          this.b = paramJSONObject.optString("thread");
          if (com.umeng.common.b.g.c(this.b))
            this.b = paramJSONObject.optString("content");
          this.c = paramJSONObject.optString("feedback_id");
          this.e = g.a(paramJSONObject.optString("datetime"));
          return;
          if ("dev_reply".equals(str1))
            this.f = b.c;
          if ("user_reply".equals(str1));
          this.f = b.b;
          break label53:
          if ("fail".equalsIgnoreCase(str2))
            label188: this.g = a.b;
          if (!("ok".equalsIgnoreCase(str2)))
            break;
          this.g = a.c;
        }
      while (!("ReSending".equalsIgnoreCase(str2)));
  }

  public int a(a parama)
  {
    Date localDate = parama.e;
    if ((this.e == null) || (localDate == null) || (localDate.equals(this.e)))
      return 0;
    if (localDate.after(this.e))
      return -1;
    return 1;
  }

  public String a()
  {
    if (this.f == b.a)
      return this.a;
    return this.b;
  }

  public static enum a
  {
    static
    {
      a[] arrayOfa = new a[4];
      arrayOfa[0] = a;
      arrayOfa[1] = b;
      arrayOfa[2] = c;
      arrayOfa[3] = d;
      e = arrayOfa;
    }
  }

  public static enum b
  {
    static
    {
      b[] arrayOfb = new b[3];
      arrayOfb[0] = a;
      arrayOfb[1] = b;
      arrayOfb[2] = c;
      d = arrayOfb;
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     com.umeng.fb.a
 * JD-Core Version:    0.5.2
 */